[#include "../common/taglibs.html"/]
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	<h4 class="modal-title">[@spring.message code="userbankcard.update.title"/]</h4>
</div>

<div class="modal-control">
	[@form.form commandName="updateDTO" method="POST" class="form-horizontal form"]
	<input type="hidden" name="format" value="json">
	<div class="modal-body">
		<div class="form-body">
			
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="userbankcard.update.form.label.bankName"/]</label>
				<div class="col-md-9">
					[@spring.bind path="bankName"]
					<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
						[#list bankList as item]
						<option value="${item.name}" [#if item.name==status.value]selected="selected"[/#if]>
							${item.name}
						</option>
						[/#list]
					</select>
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="userbankcard.update.form.label.branchName"/]</label>
				<div class="col-md-9">
					[@spring.bind path="branchName"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="userbankcard.update.form.label.accountName"/]</label>
				<div class="col-md-9">
					[@spring.bind path="accountName"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="userbankcard.update.form.label.accountNo"/]</label>
				<div class="col-md-9">
					[@spring.bind path="accountNo"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="userbankcard.update.form.label.securityTime"/]</label>
				<div class="col-md-9">
					[@spring.bind path="securityTime"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					[/@spring.bind]
				</div>
			</div>
			
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn default" data-dismiss="modal">[@spring.message code="form.button.close"/]</button>
		<button type="submit" class="btn blue">[@spring.message code="form.button.submit"/]</button>
	</div>
	[/@form.form]
</div>

<script type="text/javascript">

$('#updateDTO').validate({
	rules: {
  	},
	messages:{
	}
});

</script>